package com.york.tinyrpc.protoss;

import com.york.tinyrpc.example.common.model.User;
import com.york.tinyrpc.example.common.service.UserService;
import com.york.tinyrpc.protoss.springboot.startert.annotation.TinyRpcService;
import org.springframework.stereotype.Service;

@TinyRpcService(interfaceClass = UserService.class)
@Service
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(User user) {
        System.out.println("用户名：" + user.getName());
        return user;
    }
}

